import axios from 'src/api/common/axioswarpper.js'

let prefix = process.env.API_PREFIX;
export const post1 = (params, url) => axios.post(`${prefix}${url}`, params)
export const get1 = (params, url) => axios.get(`${prefix}${url}`, { params: { ...params } })
// 体育地区接口控制器 Football Region Controller

// Parameters  id *
export const get_sportRegion_Byid = (params, url="/sportRegion/") => axios.get(`${prefix}${url}${params.id}`, { params: { ...params } })
// Parameters  id *
export const delete_sportRegion_Byid = (params, url="/sportRegion/") => axios.delete(`${prefix}${url}${params.id}`, { params: { ...params } })
// Parameters  sportRegion *
export const post_sportRegion_insert = (params, url="/sportRegion/insert") => axios.post(`${prefix}${url}`, params)

export const get_sportRegion_page = (params, url="/sportRegion/page") => axios.get(`${prefix}${url}`, { params: { ...params } })
// Parameters  sportRegion *
export const post_sportRegion_update = (params, url="/sportRegion/update") => axios.post(`${prefix}${url}`, params)
// 体育类型接口控制器
// Parameters  id *
export const get_sportType_Byid = (params, url="/sportType/") => axios.get(`${prefix}${url}${params.id}`, { params: { ...params } })
// Parameters  id *
export const delete_sportType_Byid = (params, url="/sportType/") => axios.delete(`${prefix}${url}${params.id}`, { params: { ...params } })
// Parameters  sportType *
export const post_sportType_insert = (params, url="/sportType/insert") => axios.post(`${prefix}${url}`, params)

export const get_sportType_page = (params, url="/sportType/page") => axios.get(`${prefix}${url}`, { params: { ...params } })

export const post_sportType_update = (params, url="/sportType/update") => axios.post(`${prefix}${url}`, params)

// 数据源接口控制器

// Parameters  id *
export const get_dataSource_Byid = (params, url="/dataSource/query/") => axios.get(`${prefix}${url}${params.id}`, { params: { ...params } })
// Parameters  id *
export const delete_dataSource_Byid = (params, url="/dataSource/") => axios.delete(`${prefix}${url}${params.id}`, { params: { ...params } })
// Parameters  dataSource *
export const post_dataSource_insert = (params, url="/dataSource/insert") => axios.post(`${prefix}${url}`, params)

export const get_dataSource_page = (params, url="/dataSource/page") => axios.get(`${prefix}${url}`, { params: { ...params } })
// Parameters  dataSource *
export const post_dataSource_update = (params, url="/dataSource/update") => axios.post(`${prefix}${url}`, params)







